// Copyright (c) 2021 Presto Labs Pte. Ltd.
// Author: daniel

#pragma once

#include <string>

#include "coin2/exchange/gateio/api_order/native_private_client.h"

namespace coin2::exchange::gateio::api_order {

class GateioRestAsyncAsioSubscriber : public base::order::RestSubscriber {
 public:
  using RestParams = coin2::exchange::order::GateioRestParams;
  using RestClient = GateioNativePrivateClient;

 public:
  using RestSubscriber::RestSubscriber;

  auto rest_client() { return dynamic_cast<RestClient*>(rest_client_); }
  void QueryBalance();
  void QueryOpenOrders(int page);
  void QueryHistOrders(const std::string& native_symbol);
  void QueryHistTrades(const std::string& native_symbol);
  void SubscribeAsync() override;
  void QueryTransfer() override;
};

}  // namespace coin2::exchange::gateio::api_order
